home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13314 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.2 KB

  1. Path: news.zocalo.net!news
  2. From: Paul Hsieh <qed@xenon.chromatic.com>
  3. Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
  4. Subject: Re: Young programmers read me.
  5. Date: Sun, 24 Mar 1996 15:11:54 -0800
  6. Organization: Zocalo Engineering - Berkeley, California, USA
  7. Message-ID: <3155D6BA.5B70@xenon.chromatic.com>
  8. References: <4icpp9$7hr@barad-dur.nas.com> <4imqe4$cj3@ping1.ping.be> <4ippuq$4pk@scoop.eco.twg.com> <4j2lgn$j4l@dfw-ixnews4.ix.netcom.com>
  9. NNTP-Posting-Host: paulh.chromatic.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win95; I)
  14.  
  15. John Lilley wrote:
  16. > In article <4ippuq$4pk@scoop.eco.twg.com>, mike@vishnu.eco.twg.com says...
  17. > >If you don't agree, check out any of the Corel newsgroups and see how thier
  18. > >customers feel about the seemingly endless bugs...
  19. > If I may inject a little sanity into this discussion, I'd like to
  20. > make a few observations:
  21. > It is almost always true that optimization of a program causes
  22. > errors.  
  23.  
  24. Hmm ... they way I optimize is I run my stuff through a profiler,
  25. disassemble, examine the code, sit down with a piece of paper and
  26. design better algorithms for my problem areas then re-code it.  I
  27. don't know how, you do it, but the act of optimization does not
  28. inherently cause errors in the programs *I* write.
  29.  
  30. > [...] Trying to hit the PC market in the recent past (and
  31. > probably even today), means excessive optimization and this is
  32. > a major source of errors in the PC marketplace.
  33.  
  34. I don't believe this is the root cause of defective programs in
  35. the market place today.  It is schedule pressures put on 
  36. programmers.  Most good programmers out there try to do a
  37. decent job when they are programming.  It is usually a manager
  38. that tells them that they have to meet such and such deadline
  39. that causes problems.
  40.  
  41. > MS-Windows in particular is a nasty environment.  The degree to
  42. > which undocumented and illogical behaviors occur in this
  43. > programming environment is truly amazing.  
  44.  
  45. No argument there.
  46.  
  47. > [...] And most of these
  48. > came about from the need to optimize the H--- out of Windows
  49. > from the day it was conceived and deal with the DOS/640k legacy.
  50.  
  51. :)  This is kind of a funny statement.  Being that I've trundled
  52. through the Windows kernel with Soft Ice while debugging problems, 
  53. I find it hard to believe Microsoft was trying very hard to 
  54. *optimize* Windows ... :)
  55.  
  56. > That being said, using the example of a buggy program under
  57. > MS-Windows as a condemnation of "C" or C++ is a rather weak
  58. > argument, unless it can be demonstrated that programs written
  59. > in other languages (ADA) fare better.  [...] Perhaps as 
  60. > performance continues to improve and tools evolve ADA will 
  61. > become more attractive and get a chance to prove itself.  I 
  62. > won't hold my breath.
  63.  
  64. I don't know all that much about low-level Ada stuff, but I 
  65. studied it in University and found it to be more trouble that
  66. its worth.  The lack of a competitive environment for compiler
  67. makers to make really good Ada compilers leads me to believe 
  68. that its unlikely that Ada has any change of unseeding C/C++
  69. as the programming language of choice.
  70.  
  71. -- 
  72. Paul Hsieh
  73. qed@xenon.chromatic.com
  74.  
  75. What I say and what my company says are not always the same thing
  76.